/** 主入口js */
import {createApp} from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import axios from 'axios';
import VueAxios from 'vue-axios';
import setting from './config/setting';
import permission from './utils/permission';
// import _ from 'lodash';
import './config/axios-config';
import EleAdminPro from 'ele-admin-pro';
import './styles/index.less';

import i18n from './lang';
// import MComonents from './components/index'
/*vxEtable 4.0*/
import 'xe-utils'
import VXETable from 'vxe-table'
VXETable.setup({zIndex:100})
import 'vxe-table/lib/style.css'


const app = createApp(App);
app.config.productionTip = false;
// app.use(_);
app.use(store);
app.use(router);
app.use(VueAxios, axios);
app.use(EleAdminPro);
app.use(permission);
app.config.globalProperties.$setting = setting;
app.use(i18n);

app.use(VXETable);

app.config.globalProperties.$XModal = VXETable.modal

// app.use(MComonents);

app.mount('#app');
